class LogController < ApplicationController

  def getAllSysLog
    start = params[:start]
    limit = params[:limit]
    dblogs = DbLog.paginate start,limit

    jsonStr="{totalProperty:"+DbLog.count.to_s+",root:"+dblogs.to_json(:include=>[:company,:department,:employee])+"}"
    logger.info jsonStr
    render :text=>jsonStr, :layout=>false
  end
end
